<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入vue -->
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app" v-bind:title="message" > 
        <div v-if="show">这里的内容通过vue组件实例的data中show值来控制是否显示</div>

        <div>
            <div v-for="item in list">{{item}}</div>
        </div>
        
    </div>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                show:true,
                list: [
                    'list1',
                    'list2',
                    'list3',
                ]
            }
        })
    </script>
</body>
</html>